<div class="modal-header">
    <h3 class="modal-title">添加思路</h3>
</div>
<div class="modal-body">
    <form class="form-inline" role="form">
        <label>思路编号:</label><input type="text" ng-model="semiauto.id">
        <label>思路名称:</label><input type="text" ng-model="semiauto.name">
        <div class="form-group">
            <span>参考</span>
            <select ng-model="semiauto.platform" class="form-horizontal">
                <option value="1">PC</option>
                <option value="2">移动</option>
                <option value="0">综合</option>
            </select>
            <select ng-model="semiauto.days" class="form-horizontal">
                <option value="1">昨天</option>
                <option value="3">最近三天</option>
                <option value="7">最近一周</option>
                <option value="15">最近半个月</option>
                <option value="30">最近一个月</option>
                <option value="90">最近三个月</option>
            </select>
            <label>的数据</label>
        </div>
        <div>
            <span>
                <h4>筛选出</h4>
            </span>
            <button class="btn btn-default pull-right editor-btn" ng-click="addCondition('and')">添加并条件</button>
            <button class="btn btn-default pull-right editor-btn" ng-click="addCondition('or')">添加或条件</button>
        </div>
        <div class="form-group">
            <div class="exo" ng-repeat="condition in semiauto.conditions">
                <select class="form-horizontal" ng-model="condition.name">
                    <option value="0">展现量</option>
                    <option value="1">点击量</option>
                    <option value="2">平均点击花费</option>
                    <option value="3">点击率</option>
                    <option value="4">点击转化率</option>
                    <option value="5">宝贝排名</option>
                    <option value="6">质量总分</option>
                    <option value="7">总花费</option>
                </select>
                <select class="form-horizontal" ng-model="condition.condition">
                    <option value="<">&lt;</option>
                    <option value=">">&gt;</option>
                    <option value="=">=</option>
                    <option value="<=">&lt;=</option>
                    <option value=">=">&gt;=</option>
                <input type="text" ng-model="condition.num"></select>
                <br>
                <span>的</span>
                <input type="radio" ng-model="semiauto.condition.value[$index]"  value="1">
                <label> 宝贝均值
                </label>
                <input type="radio" ng-model="semiauto.condition.value[$index]"  value="2">
                <label> 最大值
                </label>
                <input type="radio" ng-model="semiauto.condition.value[$index]"  value="3">
                <label> 行业均值
                </label>
                <input type="radio" ng-model="semiauto.condition.value[$index]"   value="4">
                <label> 自定义<input type="text" ng-model="conditon.source_value">
                </label>
            </div>
            <h4>对符合条件的关键词做以下处理:</h4>
            <div class="exo">
                <ul class="list-unstyled">
                    <li>1.调价<input type="radio" name="radios1" ng-model="semiauto.pricing" value="true"></li>
                    <li>
                        <span>选择匹配模式:</span>
                        <input type="radio" ng-model="semiauto.match_model.value" name="radios2"
                               value="0"><label>广泛匹配</label>
                        <input type="radio" ng-model="semiauto.match_model.value" name="radios2"
                               value="1"><label>精确匹配</label>
                    </li>
                    <li>
                        <span>选择调价模式:</span>
                        <select ng-model="semiauto.price_model.price_type" class="form-horizontal">
                            <option value="1">按百分比</option>
                            <option value="2">原基础上</option>
                        </select>
                        <select ng-model="semiauto.price_model.option_type" class="form-horizontal">
                            <option value="1">降价</option>
                            <option value="2">提价</option>
                        </select>
                        <input ng-model="semiauto.price_model.price_value" type="text">
                        <span>%</span>
                    </li>
                    <li>
                        <span>最高不得多于</span>
                        <input ng-model="semiauto.price_model.extreme" type="text">
                        <span>元</span>
                    </li>
                    <li class="border-top">
                        <span>2.删除<input type="radio" name="radios1" ng-model="pricing"></span>
                    </li>
                </ul>
            </div>
            <div>
                <input type="checkbox" checked>
                <span>每天定时优化一次</span>
                <select class="form-horizontal">
                    <option>00:00</option>
                    <option>01:00</option>
                    <option>02:00</option>
                    <option>03:00</option>
                </select>
            </div>
        </div>
    </form>
</div>
<div class="modal-footer">
    <button class="btn btn-primary" type="button" ng-click="ok()">保存</button>
    <button class="btn btn-warning" type="button" ng-click="cancel()">取消</button>
</div>